package automation.readxmlFile;

import until.XMLParser;

public class testProfile {

	public XMLParser xmlparser;
	public testProfile(String profileURL)
	{
		xmlparser=new XMLParser(profileURL);
		
	}
	
	public String readElement(String element)
	{
	
	return	xmlparser.readNodeByname(element);

	}
	
	
	public String readNode(String element){
		
		return xmlparser.readRootNode(element);
	}
	
	public String readElement (String strElement, int index)
	{
		String element = xmlparser.readNodeByname(strElement);
		element = element.replace("$", Integer.toString(index));
		
		return element;
	}
}
